home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / Small Eiffel 0.4.8 / lib_show / bench1 / bench.csh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1997-04-13  |  255b  |  14 lines

  1. #!/bin/csh -f
  2. #
  3. # Run this file to have a comparison 
  4. #
  5. foreach b (*_bench.e)
  6.     set cmd="compile $b make -no_split -boost -O3"
  7.     set cmd="${SmallEiffel}/bin/$cmd"
  8.     $cmd >& /dev/null
  9.     echo "$b : "
  10.     /bin/time a.out >&! tmp
  11.     grep "user" tmp
  12. end
  13. /bin/rm -f tmp
  14.